/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.webhomesites.locacao.model;

import br.com.webhomesites.locacao.contracts.ILocacaoDAO;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Webhome
 */
public class LocacaoDAO implements ILocacaoDAO {

    static List<LocacaoModel> listaLocacao = new ArrayList<>();
    
    @Override
    public void inserirLocacao(LocacaoModel locacaoModel) {
        
        listaLocacao.add(locacaoModel);
        
        for(int i = 0; i < listaLocacao.size(); i++) {
            System.out.println(listaLocacao.get(i).toString());
        }
        
    }

    @Override
    public void cancelarLocacao(LocacaoModel locacaoModel) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void selecionarLocacao(LocacaoModel locacaoModel) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List selecionarTodasLocacoes() {
        //throw new UnsupportedOperationException("Not supported yet.");
        return listaLocacao;
    }
    
}
